import * as salaryApi from '@/api/salary';

const state = {
  // 工资列表
  salaryList: {},
  total: 0,

}

const mutations = {
  SET_SALARY_LIST(state, newValue) {
    state.salaryList = newValue
  },

}

const actions = {
  async updateSalaryList ({commit}, params) {
    const res = await salaryApi.salary(params);
    commit('SET_SALARY_LIST', res)
  },

}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
